package cn.edu.zafu.bigdata.wupeng;

class Book {
        private String title;
        private String author;
        private String price;
        String prices;

        public Book(String title,String author,double price){
                this.title=title;
                this.author=author;
                prices=String.valueOf(price);
                this.price=prices;
        }

        @Override
        public String toString() {
                return "Book[title="+ title+",author="+author+",price="+ price+"]";
        }
        public String getTitle(){
                return title;
        }
        public void setTitle(String title){
                this.title=title;
        }

        public String getAuthor(){
                return author;
        }
        public void setAuthor(String author){
                this.author=author;
        }

        public String getPrice(){
                return prices;
        }
        public void setPrice(String price){
                this.price=prices;
        }
}

public class TBook {
        public static void main(String[] args) {
                Book book1=new Book("a","b",2);
                Book book2=new Book("c","d",3);
                Book book3=new Book("e","f",4);

                System.out.println(book1);
                System.out.println(book2);
                System.out.println(book3);
        }

}
